Optimal. Leaf size=47 \[ \frac{B \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )}{\sqrt{b}}-\frac{A \sqrt{a+b x^2}}{a x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0176591, antiderivative size = 47, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.136, Rules used = {451, 217, 206} \[ \frac{B \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )}{\sqrt{b}}-\frac{A \sqrt{a+b x^2}}{a x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 451
Rule 217
Rule 206
Rubi steps
\begin{align*} \int \frac{A+B x^2}{x^2 \sqrt{a+b x^2}} \, dx &=-\frac{A \sqrt{a+b x^2}}{a x}+B \int \frac{1}{\sqrt{a+b x^2}} \, dx\\ &=-\frac{A \sqrt{a+b x^2}}{a x}+B \operatorname{Subst}\left (\int \frac{1}{1-b x^2} \, dx,x,\frac{x}{\sqrt{a+b x^2}}\right )\\ &=-\frac{A \sqrt{a+b x^2}}{a x}+\frac{B \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )}{\sqrt{b}}\\ \end{align*}
Mathematica [A] time = 0.0167366, size = 47, normalized size = 1. \[ \frac{B \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )}{\sqrt{b}}-\frac{A \sqrt{a+b x^2}}{a x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.008, size = 41, normalized size = 0.9 \begin{align*}{B\ln \left ( x\sqrt{b}+\sqrt{b{x}^{2}+a} \right ){\frac{1}{\sqrt{b}}}}-{\frac{A}{ax}\sqrt{b{x}^{2}+a}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.58099, size = 255, normalized size = 5.43 \begin{align*} \left [\frac{B a \sqrt{b} x \log \left (-2 \, b x^{2} - 2 \, \sqrt{b x^{2} + a} \sqrt{b} x - a\right ) - 2 \, \sqrt{b x^{2} + a} A b}{2 \, a b x}, -\frac{B a \sqrt{-b} x \arctan \left (\frac{\sqrt{-b} x}{\sqrt{b x^{2} + a}}\right ) + \sqrt{b x^{2} + a} A b}{a b x}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.21968, size = 99, normalized size = 2.11 \begin{align*} - \frac{A \sqrt{b} \sqrt{\frac{a}{b x^{2}} + 1}}{a} + B \left (\begin{cases} \frac{\sqrt{- \frac{a}{b}} \operatorname{asin}{\left (x \sqrt{- \frac{b}{a}} \right )}}{\sqrt{a}} & \text{for}\: a > 0 \wedge b < 0 \\\frac{\sqrt{\frac{a}{b}} \operatorname{asinh}{\left (x \sqrt{\frac{b}{a}} \right )}}{\sqrt{a}} & \text{for}\: a > 0 \wedge b > 0 \\\frac{\sqrt{- \frac{a}{b}} \operatorname{acosh}{\left (x \sqrt{- \frac{b}{a}} \right )}}{\sqrt{- a}} & \text{for}\: b > 0 \wedge a < 0 \end{cases}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.1221, size = 78, normalized size = 1.66 \begin{align*} -\frac{B \log \left ({\left (\sqrt{b} x - \sqrt{b x^{2} + a}\right )}^{2}\right )}{2 \, \sqrt{b}} + \frac{2 \, A \sqrt{b}}{{\left (\sqrt{b} x - \sqrt{b x^{2} + a}\right )}^{2} - a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]